package com.logisticsrepair.mapper;
import java.util.List;

import com.logisticsrepair.entity.WorkerEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
* @author huahua
* @description 针对表【worker(维修用户)】的数据库操作Mapper
* @createDate 2022-03-31 12:47:20
* @Entity com.logisticsrepair.entity.WorkerEntity
*/
public interface WorkerMapper extends BaseMapper<WorkerEntity> {

    /**
     * 根据订单表中订单号获取维修员openid，再在维修员表中获取邮箱
     * @param orderId 订单表订单号
     * @return 邮箱
     */
    WorkerEntity queryWorkerEmailInRepairOrdersByWorkerOpenid(@Param("orderId") String orderId);

}




